from django.db import models

# Create your models here.
from django.db import models
#from search.models import *

class User(models.Model):
    username = models.CharField(verbose_name='用户名', max_length=100)
    password = models.CharField(verbose_name='密码', max_length=100)
    phone = models.CharField(verbose_name='电话号码', max_length=100)
    email = models.EmailField(verbose_name='邮箱', max_length=100,unique=True)
    is_login = models.BooleanField(verbose_name='是否登录', default=False)
    level = models.IntegerField(verbose_name='用户类型',default=1)  # 0是管理员，1是游客，2是学者

    #关于论文的信息后续补充
